package BianLiMuLu;

import java.io.File;

public class BianLiMuLu {
    public static void main(String[] args) {
        File srcfile = new File("D:\\hello-world");
getAllFilePath(srcfile);
    }
    public  static  void getAllFilePath(File srcfile){
        File[] filesArray = srcfile.listFiles();
        if(filesArray!=null){
            for(File file:filesArray){
                if(file.isDirectory()){
                    getAllFilePath(file);
                }else{
                    System.out.println(file.getAbsolutePath());
                }
            }
        }
    }
}
